import request from '@/utils/request'

export function getList() {
  return request({
    url: '/api/mechanism_list',
    method: 'get',
  })
}

export function doEdit(data: any) {
  return request({
    url: '/api/mechanism_add',
    method: 'post',
    data,
  })
}

export function setMec(data: any) {
  return request({
    url: '/api/set_mec',
    method: 'post',
    data,
  })
}
